package jse.faceObject;

import java.math.BigDecimal;

import org.junit.Test;

/**
 * @desc   图书类
 * @author kanggw
 * @datetime 2016年2月28日,下午9:00:03
 */
public class Book {
	//定义书名
	private String bookName;
	//定义作者
	private String bookAuthor;
	//定义价格
	private BigDecimal bookPrice;
	//构造方法
	public Book() {
		
	}
	//有参构造器
	public Book(String name,String author,BigDecimal price) {
		
		 this.bookName = name;
		 this.bookAuthor = author;
		 this.bookPrice = price;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getBookAuthor() {
		return bookAuthor;
	}
	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}
	public BigDecimal getBookPrice() {
		return bookPrice;
	}
	public void setBookPrice(BigDecimal bookPrice) {
		this.bookPrice = bookPrice;
	}
	
	@Test
	public void test123() {
		
		BigDecimal price = new BigDecimal(13.3);
		Book book = new Book("戒为良药","飞翔",price);
		System.out.println(book.getBookPrice());
	}
}
